﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;

namespace Coslen.TahorCRM.Security
{
    public class TahorIdentity : IIdentity
    {
        private string _authenticationType;
        private bool _isAuthenticated;
        private string _name;

        public TahorIdentity(string name, bool isAuthenticated)
        {
            this._name = name;
            this._isAuthenticated = isAuthenticated;
            _authenticationType = "Tahor";
        }

        public string Name
        {
            get { return _name; }
        }

        public string AuthenticationType
        {
            get { return _authenticationType; }
        }

        public bool IsAuthenticated
        {
            get { return _isAuthenticated; }
        }
    }
}
